1
The Ghost in the Machine: Defining the Program
AI020 Lesson 1
00:00

A program is a dualistic entity, often described as the "ghost in the machine." It exists simultaneously as a static piece of text written by a human and a dynamic, immaterial machine that directs the physical hardware. A computer serves merely as a host for these logic-based constructs.

1. The Triple Existence

A program manifests in three ways: as human-readable source code, as binary data in memory, and as the active force controlling that memory. The programmer is a creator of universes of virtually unlimited complexity, governed entirely by the logic they define.

The Material Host
Physical hardware, mainframes, and circuits.
The Immaterial Guest
The logic, the 'ghost', and the program's intent.

2. Controlling Complexity

Programming is the skill of subduing complexity. A great program makes the complex appear simple. While computer languages are less flexible than human speech, they follow strict grammatical rules to maintain precision.

Beyond the Browser: To run the programs defined in this course outside of a web browser, you can use Node.js.

Universes we will build: Artificial Life Simulation • Platform Games • Paint Programs • Dynamic Websites
main.py
TERMINAL bash — 80x24
> Ready. Click "Run" to execute.
>